gtkpopover: Roll back properly if presenting the popup fails
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 24 Apr 2020 21:06:52 +0000 (23:06 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 24 Apr 2020 21:06:52 +0000 (23:06 +0200)
commit67e1acd4d7933139e37dddb4e4f102c0ea6d1168
treed17ea2d872bd4710ab7d53dd73253948448e0e30
parentd104efe06e2af085e2bf14f6cd51bbfb0d707f1e
gtkpopover: Roll back properly if presenting the popup fails

If the popover fails to be shown, it would internally undo visible
and mapped state. If we just proceed as normal, the widget enters
in inconsistent state, and a grab remains issued on the invisible
widget, preventing further input from the input device.
gtk/gtkpopover.c